package com.yc.myspringboot.mq;

//import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author: DevanYan
 * @create: 2019-05-28 11:47
 */

// 消息的生产者
@Component
public class Creater11 {

//    @Autowired
//    private AmqpTemplate amqpTemplate;
//
//    public void  create(){
//        String message = "Hello RabbitMQ !";
//        amqpTemplate.convertAndSend("hello", message);
//        System.out.println("创建了一条消息 : " + message);
//    }

}